package com.yjy.fxkj;

public class Client {
    public static void main(String[] args) {
        PowerRS485Dev powerRS485Dev = new PowerRS485Dev();
        PowerRS485Observer powerObs = new PowerRS485Observer();
        PowerCanObserver canObs = new PowerCanObserver();
        powerRS485Dev.addObserver(powerObs);
        powerRS485Dev.addObserver(canObs);
        powerRS485Dev.powerErr();
    }
}
